Package com.cisco.pt.ipc.sim.impl
Class TcpConnectionImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.TcpConnectionImpl
- All Implemented Interfaces:
IPCObject,TcpConnection
Information provided by the PKI file:
\class TcpConnection
\brief TcpConnection for TCP connections made from TcpProcess's listen() and connect().
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionTcpConnectionImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(boolean bAccepted) Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:getState()Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
TcpConnectionImpl
public TcpConnectionImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getLocalIp
Information provided by the PKI file:
\brief Get local Ip Address \return ip, local ip address- Specified by:
getLocalIpin interfaceTcpConnection- Returns:
- IPAddress Returns a IPAddress
-
getLocalIpv6
Information provided by the PKI file:
\brief Get local Ipv6 Address \return ipv6, local ipv6 address- Specified by:
getLocalIpv6in interfaceTcpConnection- Returns:
- IPV6Address Returns a IPV6Address
-
getLocalPort
public int getLocalPort()Information provided by the PKI file:
\brief Get local Port number \return int, port number- Specified by:
getLocalPortin interfaceTcpConnection- Returns:
- int Returns a int
-
getRemoteIp
Information provided by the PKI file:
\brief Get remote Ip Address \return ip, remote ip address- Specified by:
getRemoteIpin interfaceTcpConnection- Returns:
- IPAddress Returns a IPAddress
-
getRemoteIpv6
Information provided by the PKI file:
\brief Get remote Ipv6 Address \return ipv6, remote ipv6 address- Specified by:
getRemoteIpv6in interfaceTcpConnection- Returns:
- IPV6Address Returns a IPV6Address
-
getRemotePort
public int getRemotePort()Information provided by the PKI file:
\brief Get remote port number \return int, remote port number- Specified by:
getRemotePortin interfaceTcpConnection- Returns:
- int Returns a int
-
getRemoteIpString
Information provided by the PKI file:
\brief Get remote ip address in string format \return string, remote ip address- Specified by:
getRemoteIpStringin interfaceTcpConnection- Returns:
- String Returns a String
-
getState
Information provided by the PKI file:
\brief get the tcp connection state \return TcpConnectionState CLOSED = 0, SYN_SENT = 1, SYN_RECEIVED = 2, ESTABLISHED = 3, LISTEN = 4, FIN_WAIT_1 = 5, TIMED_WAIT = 6, CLOSE_WAIT = 7, FIN_WAIT_2 = 8, LAST_ACK = 9, CLOSING = 10- Specified by:
getStatein interfaceTcpConnection- Returns:
- TcpConnectionState Returns a TcpConnectionState
-
accept
public void accept(boolean bAccepted) Information provided by the PKI file:
\brief Accept the connection request \param bAccepted, bool- true to accept and false to reject- Specified by:
acceptin interfaceTcpConnection- Parameters:
bAccepted- Takes in a parameter of bAccepted
-